<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加收货地址</title>
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <style>
        form{
            margin: 100px auto;
        }
        textarea{
            width: 100%;
        }
    </style>
</head>
<body>
    <div th:insert="~{public/publicTop::top}"></div>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>添加地址</legend>
    </fieldset>
    <form class="form-horizontal" th:action="@{/account/addAddress}" method="post">
        <div class="form-group">
          <label  class="col-sm-2 control-label">收货人</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="name" placeholder="名字">
          </div>
        </div>
        <div class="form-group">
          <label  class="col-sm-2 control-label">电话号码</label>
          <div class="col-sm-8">
            <input type="text" class="form-control number" name="phone" placeholder="手机号" >
          </div>
        </div>
        <div class="form-group">
          <label  class="col-sm-2 control-label">所在地区</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="address" placeholder="省、市、区、街道">
          </div>
        </div>
        <div class="form-group">
          <label  class="col-sm-2 control-label">地址</label>
          <div class="col-sm-8">
            <textarea  name="longAddress" cols="30" rows="10" placeholder="小区楼栋/乡村名称"></textarea>
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-8">
            <button type="submit" class="btn btn-default btn btn-success">保存</button>
          </div>
        </div>
      </form>
</body>
</html>